/**
 * Copyright (c) 2009-2011, chunquedong(YangJiandong)
 * 
 * This file is part of ChunMap project
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
 * 
 * History:
 *     2010-05-05  Jed Young  Creation
 */
package chunmap.data.feature;

import chunmap.model.crs.CoordinateRSystem;
import chunmap.model.geom.GeometryType;
/**
 * 地图元数据
 * @author chunquedong
 * 
 */
public class LayerMetadata {
	private String name;
	private GeometryType type;
	private CoordinateRSystem crs;
    
    public String getName() {return name;}
	public void setName(String name) {this.name = name;}
	public GeometryType getType() {return type;}
	public void setType(GeometryType type) {this.type = type;}
	public CoordinateRSystem getCrs() {return crs;}
	public void setCrs(CoordinateRSystem crs) {this.crs = crs;}

	public LayerMetadata()
    {
        name = "noName";
        type = GeometryType.None;
        crs = CoordinateRSystem.Unknow;
    }

    public LayerMetadata(String name,GeometryType type,CoordinateRSystem crs)
    {
        this.name = name;
        this.type = type;
        this.crs = crs;
    }

    public LayerMetadata(String name, GeometryType type)
    {
        this.name = name;
        this.type = type;
        crs = CoordinateRSystem.Unknow;
    }
}